"""
日志配置
"""

from loguru import logger

log_format = "{time:YYYY-MM-DD} | {level} | {message}"

logger.add(
    "logs/{time:YYYY-MM-DD}.log",
    rotation="1 day",
    # retention="30 days",
    level="DEBUG",
    # format=log_format
    # backtrace=True,
    # diagnose=True,
)
